# -*- coding: utf-8 -*-
'''
@author: Hugo
@file: converters.py
@time: 2021/11/18 17:36
'''
from django.urls import converters

class UsernameConverter:
    regex = '[a-zA-Z0-9]{5,20}'

    def to_python(self,value):
        return value